<template>
  <div>
    <h3>我是档案组件</h3>
    <p>{{fullRoute}}</p>
    <p>{{ $route.path }}</p>
    <p>{{ $route.query }}</p>
    <button @click="testUpdata()">点击打印</button>
  </div>
</template>

<script>
export default {
  name: "Profile",
  data() {
    return {};
  },
  computed: {
    fullRoute() {
      console.log(this.$route,'芜湖');
      return this.$route.path
    },
  },
  methods: {
    // 测试给Vue原型上添加属性是否可用
    testUpdata() {
      console.log(this.test);
    }
  },
};
</script>

<style>
</style>